From b5f204ac3c578938e6f210f120b61dc41d417c34 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 14 Nov 2007 10:00:37 +0000 Subject: [PATCH] tests/testbbox.c use g_object_ref/unref instead of deprecated functions. 2007-11-14 Michael Natterer * tests/testbbox.c * tests/testframe.c: use g_object_ref/unref instead of deprecated functions. svn path=/trunk/; revision=18990 --- ChangeLog | 6 ++++++ tests/testbbox.c | 4 ++-- tests/testframe.c | 5 +++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8f78939b49..b8cc67923f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-14 Michael Natterer + + * tests/testbbox.c + * tests/testframe.c: use g_object_ref/unref instead of deprecated + functions. + 2007-11-14 Michael Natterer * gtk/gtkstyle.c (gtk_default_draw_focus): cast pointers to fix diff --git a/tests/testbbox.c b/tests/testbbox.c index 7ff753e32a..e9a5de6002 100644 --- a/tests/testbbox.c +++ b/tests/testbbox.c @@ -70,10 +70,10 @@ reparent_widget (GtkWidget *widget, GtkWidget *old_parent, GtkWidget *new_parent) { - gtk_widget_ref (widget); + g_object_ref (widget); gtk_container_remove (GTK_CONTAINER (old_parent), widget); gtk_container_add (GTK_CONTAINER (new_parent), widget); - gtk_widget_unref (widget); + g_object_unref (widget); } static void diff --git a/tests/testframe.c b/tests/testframe.c index 2abb83249b..b64ec6400d 100644 --- a/tests/testframe.c +++ b/tests/testframe.c @@ -30,7 +30,8 @@ spin_ythickness_cb (GtkSpinButton *spin, gpointer user_data) rcstyle->xthickness = GTK_WIDGET (frame)->style->xthickness; rcstyle->ythickness = gtk_spin_button_get_value (spin); gtk_widget_modify_style (frame, rcstyle); - gtk_rc_style_unref (rcstyle); + + g_object_unref (rcstyle); } static void @@ -44,7 +45,7 @@ spin_xthickness_cb (GtkSpinButton *spin, gpointer user_data) rcstyle->ythickness = GTK_WIDGET (frame)->style->ythickness; gtk_widget_modify_style (frame, rcstyle); - gtk_rc_style_unref (rcstyle); + g_object_unref (rcstyle); } /* Function to normalize rounding errors in FP arithmetic to -- 2.30.2